STEP 9: Now let's make the sprite say their message!

  • Find the .say("Hello, name") command inside the click event.
  • Click into the code editor and change "Hello, name" to "Remember to social distance!".
  • Be sure not to delete the quotation marks " " or the indentation.
  • Click Run. Wait for the sprite to stop moving, then click on it.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("schoolentrance") sprite = codesters.Sprite("cheerleader4") sprite.move_down(150) stage.wait(2) sprite.turn_right(360) def click(sprite): sprite.say("Hello, name") sprite.event_click(click)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)